import axios from 'axios'

axios.defaults.baseURL = 'http://localhost/api/'
axios.defaults.timeout = 10000

axios.interceptors.request.use(function (config) {
    config.headers.token = '13014577033'
    return config
}, function (error) {
    // 对请求错误做些什么
    return Promise.reject(error);
})

export default axios
